package cn.stylefeng.guns.modular.dept.type.controller;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.dept.type.entity.DeptType;
import cn.stylefeng.guns.modular.dept.type.model.params.DeptTypeParam;
import cn.stylefeng.guns.modular.dept.type.model.result.DeptTypeResult;
import cn.stylefeng.guns.modular.dept.type.service.DeptTypeService;
import cn.stylefeng.roses.core.base.controller.BaseController;
import cn.stylefeng.roses.kernel.model.response.ResponseData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;


/**
 * 控制器
 *
 * @author syt
 * @Date 2020-10-09 14:38:43
 */
@Controller
@RequestMapping("/deptType")
public class DeptTypeController extends BaseController {

    @Autowired
    private DeptTypeService deptTypeService;

    /**
     * 查询列表
     *
     * @author syt
     * @Date 2020-10-09
     */
    @ResponseBody
    @RequestMapping("/list")
    public List<DeptTypeResult> list(DeptTypeParam deptTypeParam) {
        return this.deptTypeService.findList(deptTypeParam);
    }

}


